/* 后勤保障关键技术识别与预测系统样式表 */




/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Han Sans CN', 'Roboto', sans-serif;
  background-color: #F5F5F5;
  color: #333333;
  line-height: 1.5;
  font-size: 16px;
  /* 为左侧导航栏留出空间 */
  padding-left: 120px;
}

/* 布局 */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.user-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #0f4fe3;
  img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
}
.user-avatar img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
/* 导航栏 */
.navbar {
  background-color: #0f4fe3;
  color: white;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* 左侧导航栏调整 */
  /* left: 120px; */
  /* width: calc(100% - 120px); */
}

.navbar-title {
  font-size: 18px;
  font-weight: 500;
}

.navbar-menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.navbar-user:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #0f4fe3;
}

.user-name {
  font-size: 14px;
  font-weight: 400;
}

.navbar-dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1001;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #F5F5F5;
}

.dropdown-divider {
  height: 1px;
  background-color: #E0E0E0;
  margin: 4px 0;
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

/* 主要内容区域 */
.main-content {
  margin-top: 64px;
  padding: 16px 0;
  min-height: calc(100vh - 64px);
}

/* 卡片组件 */
.card {
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
}

/* 按钮 */
.btn {
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid #0f4fe3;
  background-color: #0f4fe3;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-back {
  background-color: #0f4fe3 !important;
  border: 1px solid #0f4fe3 !important;
  color: white !important;
}

.btn-secondary {
  background-color: #F5F5F5;
  color: #333333;
  border: 1px solid #CCCCCC;
}

.btn-warning {
  background-color: #CC6600;
  border: 1px solid #CC6600;
}

.btn-success {
  background-color: #388E3C;
  border: 1px solid #388E3C;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #0f4fe3;
  margin-right: 10px;
}

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.btn-block {
  display: block;
  /* width: 100%; */
  /* width: 20%; */
  /* margin: 0 auto; */
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 表单元素 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.input-field {
  padding: 10px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

.select-field {
  padding: 10px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
  min-height: 44px;
}

.textarea-field {
  padding: 10px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
}

/* 列表 */
.list-item {
  padding: 12px 0;
  border-bottom: 1px solid #EEEEEE;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-item:last-child {
  border-bottom: none;
}

.list-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.list-meta {
  font-size: 14px;
  color: #666666;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-new {
  background-color: #E3F2FD;
  color: #1976D2;
}

.status-jxz {
  background-color: #FFE0B2;
  color: #FF8F00;
}

.status-confirmed {
  background-color: #E8F5E9;
  color: #388E3C;
}

.status-review {
  background-color: #FFF8E1;
  color: #FF8F00;
}

/* 底部导航 */
/* 左侧导航栏 - 替代原来的底部导航 */
.left-nav {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 120px;
  background-color: #1a5ee6; /* 与顶部导航协调的浅蓝色背景 */
  border-right: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 8px 16px 8px;
  z-index: 1001;
}

.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

/* 添加悬停效果，提升交互体验 */
.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: #0f4fe3;
  background-color: white;
  font-weight: 500;
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

.nav-item.active .nav-icon {
  fill: #0f4fe3;
}

/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col {
  padding: 0 8px;
  flex: 1;
}

.col-12 {
  width: 100%;
}

.col-6 {
  width: 50%;
}

/* 文字样式 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #666666;
}

.text-small {
  font-size: 14px;
}

/* 间距 */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.mr-2 { margin-right: 16px; }

/* 响应式调整 */
/* 大屏幕响应式调整 */
@media (min-width: 1200px) {
  .navbar {
    /* padding: 0 32px; */
  }
  
  .navbar-title {
    font-size: 20px;
  }
}

/* 小屏幕响应式调整 */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 64px;
    left: 100px;
    width: calc(100% - 100px);
  }
  
  .left-nav {
    width: 100px;
    align-items: stretch;
    padding: 64px 6px 16px 6px;
  }
  
  .nav-item {
    width: 100%;
    font-size: 11px;
    gap: 6px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  
  body {
    padding-left: 100px;
  }
  
  .navbar-user {
    display: none;
  }
  
  .navbar-dropdown {
    display: none;
  }
  
  .main-content {
    margin-top: 64px;
    padding: 12px 0;
  }
  
  .card {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .btn {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  .form-label {
    font-size: 16px;
  }
  
  .input-field, .select-field {
    font-size: 16px;
    min-height: 44px;
  }
  
  .evaluation-actions {
    flex-direction: row;
    gap: 4px;
  }
  
  .evaluation-actions .btn {
    padding: 4px 6px;
    font-size: 12px;
    min-height: 32px;
    min-width: auto;
  }
  
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .evaluation-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}  .btn {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  .form-label {
    font-size: 16px;
  }
  
  .input-field, .select-field {
    font-size: 16px;
    min-height: 44px;
  }
  
  .evaluation-actions {
    flex-direction: row;
    gap: 4px;
  }
  
  .evaluation-actions .btn {
    padding: 4px 6px;
    font-size: 12px;
    min-height: 32px;
    min-width: auto;
  }
  


/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0f4fe3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 页签导航 */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid #E0E0E0;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  color: #666666;
}

.tab-btn.active {
  color: #0f4fe3;
  border-bottom: 2px solid #0f4fe3;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 树形结构 */
.tree-view {
  padding-left: 16px;
}

.tree-item {
  /* margin-bottom: 15px !important; */
}

.tree-header {
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.tree-header::before {
  content: "▶";
  position: absolute;
  left: -16px;
  transition: transform 0.2s;
}

.tree-header.expanded::before {
  transform: rotate(90deg);
}

.tree-children {
  padding-left: 24px;
  display: none;
}

.tree-children.expanded {
  display: block;
}

.tree-leaf {
  padding: 6px 0;
  color: #666666;
}

/* 调整技术主题板块的间距 */
#tab-catalog .tree-item {
  margin-bottom: 2.67px; /* 原来的三分之一 (8px / 3) */
}

#tab-catalog .tree-header {
  padding: 2.67px 0; /* 原来的三分之一 (8px / 3) */
}

#tab-catalog .tree-leaf {
  padding: 2px 0; /* 原来的三分之一 (6px / 3) */
}

/* 提示词模板 */
.prompt-template {
  margin: 16px 0;
}

/* 提示信息 */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.alert-info {
  background-color: #E3F2FD;
  border: 1px solid #BBDEFB;
  color: #1976D2;
}

.alert-warning {
  background-color: #FFF8E1;
  border: 1px solid #FFECB3;
  color: #FF8F00;
}

.alert-error {
  background-color: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #C62828;
}

.alert-success {
  background-color: #E8F5E9;
  border: 1px solid #C8E6C9;
  color: #388E3C;
}

/* 数据示例样式 */
.data-example-content {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
  margin-top: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}

.data-example-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 数据源进度条样式 */
.data-source-progress {
  width: 100px;
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  width: 50%;
  margin: 20px;
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 16px;
}

.progress-detail-container {
  margin-top: 16px;
}

.progress-item {
  padding: 12px 0;
  border-bottom: 1px solid #EEEEEE;
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.progress-meta {
  font-size: 14px;
  color: #666666;
}

.progress-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background-color: #FFF8E1;
  color: #FF8F00;
}

.status-processing {
  background-color: #E3F2FD;
  color: #1976D2;
}

.status-completed {
  background-color: #E8F5E9;
  color: #388E3C;
}

/* 评分输入样式 */
.rating-input {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #CCCCCC;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-input input[type="radio"]:checked + label {
  background-color: #0f4fe3;
  color: white;
  border-color: #0f4fe3;
}

/* 统计卡片样式 */
.stats-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #0f4fe3;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #666666;
}

/* 已完成评价按钮容器样式 */
.evaluation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .evaluation-actions {
    flex-direction: row;
    gap: 4px;
  }
  
  .evaluation-actions .btn {
    padding: 4px 6px;
    font-size: 12px;
    min-height: 32px;
    min-width: auto;
  }
  
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .evaluation-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

/* 自定义确认对话框样式 */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 400px;
  overflow: hidden;
}

.confirm-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E0E0E0;
  background-color: #f8f9fa;
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #333;
}

.confirm-modal-body {
  padding: 20px;
  font-size: 16px;
  color: #555;
}

.confirm-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #f8f9fa;
}

.confirm-modal-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
}

.confirm-modal-btn-cancel {
  background-color: #F5F5F5;
  color: #333;
  border: 1px solid #CCCCCC;
}

.confirm-modal-btn-confirm {
  background-color: #0f4fe3;
  color: white;
  border: 1px solid #0f4fe3;
}

.confirm-modal-btn-cancel:hover {
  background-color: #e0e0e0;
}

.confirm-modal-btn-confirm:hover {
  background-color: #254830;
}

/* 评估码显示 */
.evaluation-code-display {
  font-size: 32px;
  font-weight: bold;
  color: #0f4fe3;
  background-color: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  letter-spacing: 4px;
  text-align: center;
}

/* 警告文本 */
.text-warning {
  color: #CC6600;
  font-size: 14px;
}

/* 专家复选框 */
.expert-checkbox {
  width: 20px;
  height: 20px;
}

/* 技术成熟度时间线样式 */
.tech-maturity-timeline {
  padding: 20px 0;
}

.timeline-container {
  position: relative;
  height: 120px;
  margin: 40px 40px 60px 40px;
}

.timeline-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #0f4fe3;
  transform: translateY(-50%);
}

.timeline-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80px;
}

.timeline-point.current {
  left: 0;
}

.timeline-point.future-3y {
  left: 30%;
}

.timeline-point.future-5y {
  left: 60%;
}

.timeline-point.future-10y {
  left: 100%;
}

.point-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0f4fe3;
  margin: 0 auto 10px;
  position: relative;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #0f4fe3;
}

.point-label {
  font-size: 14px;
  color: #666666;
  margin-bottom: 5px;
  white-space: nowrap;
  margin-top: 30px; /* 将标签下移30px */
}

.point-value {
  font-weight: bold;
  color: #0f4fe3;
  white-space: nowrap;
}

.maturity-description {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 15px;
}

.description-item {
  margin-bottom: 10px;
}

.description-item:last-child {
  margin-bottom: 0;
}

.description-label {
  font-weight: bold;
  color: #0f4fe3;
  margin-right: 10px;
}

.prediction-basis {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 15px;
}

.basis-item {
  margin-bottom: 15px;
}

.basis-item:last-child {
  margin-bottom: 0;
}

.basis-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.basis-content {
  color: #666;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .timeline-container {
    height: 140px;
    margin: 40px 20px 70px 20px;
  }
  
  .timeline-point {
    width: 70px;
  }
  
  .point-label {
    font-size: 12px;
    margin-top: 30px; /* 在移动端也下移30px */
  }
  
  .point-value {
    font-size: 14px;
  }
  
  .description-label {
    display: block;
    margin-bottom: 3px;
  }
}


